<template>
  <div id="app">
    <vue-amap></vue-amap>
    <!--<div id="testInput">{{message | filterFun}}</div>-->
    <button @click="increament">+</button>
  </div>
</template>

<script type="text/ecmascript-6">
  import VueAmap from './components/vue-amap/AMap'
//  import TestMixin from './hello'

  export default {
//    mixins: [TestMixin],

    components: {VueAmap},
    data () {
      return {
        message: '',
        pos: 0
      }
    },
    filters: {
      filterFun: function (value) {
        return value + 'nihao'
      }
    },
    computed: {
      showList: function () {
        return this.$store.state.app.showList
      }
    },
    watch: {
      showList () {
        window.alert('clicked')
      }
    },
    methods: {
      increament () {
//        this.amapSetZoom(19)

//        let newCity = {
//          // 省
//          province: '',
//          // 市
//          city: '重庆市',
//          // 城市编码
//          citycode: '',
//          // 区
//          district: ''
//        }
        this.$store.dispatch('amapSetLocationSearchKeyword', '外滩')
//        this.hello()
      }
//      testMethod () {
//        this.testInterface()
//      },
//      // override
//      overrideMethods () {
//        window.alert('from override')
//      }
    }
  }
</script>

<style>

</style>
